export default{
    template:`<h1>产品详情</h1>`,
beforeRouteEnter(to,from,next){
    console.log("组件导航守卫进入产品详情路由");
    next()
},
beforeRouteUpdate(to,from,next){
    console.log("组件导航守卫路由更新");
    console.log(this) //=>产品详情
    next();
},
beforeRouteLeave(to,from,next){
    console.log("组件导航守卫离开/product路由");
    console.log("现在路由",from);
    console.log("前往路由",to);
    next()

}
}